STEP 13: The loop in dance() will run once for each sprite stored in the list. That will cause every shape to move!

  • Use Wait inside the loop to pause 0.2 seconds. It should be indented twice!
  • Add Move Down inside the loop in dance as well. One indent is for the function, one indent is for the loop.

Notice that we are using the loop to access each sprite in my_list, therefore all the commands in the loop are assigned to each sprite stored in the list using dot notation.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)